package com.dk.service.impl;

import com.dk.mapper.UserMapper;
import com.dk.pojo.User;
import com.dk.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName UserServiceImpl
 * @Description USER实现类
 * @Author Eayon
 * @Date 2020/6/3 19:07
 * @Version 1.0
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;

    @Override
    public List<User> findAll() {
        return userMapper.findAll();
    }

    @Override
    public Boolean addUser(User user) {
        return userMapper.addUser(user);
    }
}
